package com.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.enumbean.InteractionType;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@NoArgsConstructor()
@TableName("customer_interactions")
public class CustomerInteractions {
    //   id INT AUTO_INCREMENT PRIMARY KEY,
    //    customer_id INT NOT NULL,
    //    interaction_type ENUM('手机','邮箱','会议','订单','其他') NOT NULL,
    //    content TEXT,
    //    user_id INT,
    //    created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
    //    INDEX interaction_time_idx (created_at),
    //    INDEX type_staff_idx (interaction_type, user_id)
    @TableId(type= IdType.AUTO)
    private Integer id;
    private Integer customer_id;
    private InteractionType interaction_type;
    private String content;
    private Integer user_id;
    private LocalDateTime created_at;

}
